package com.jijs.cxf.calc;

import javax.jws.WebService;

import com.jijs.ws.bean.User;

@WebService(endpointInterface = "com.jijs.cxf.calc.ICalcWsService", 
		wsdlLocation = "META-INF/wsdl/calc.wsdl", 
		portName = "calcWsPort", 
		serviceName = "calcWsService", 
		targetNamespace = "http://cxf.jijs.com/calc/")
public class CalcWsServiceImpl implements ICalcWsService {

	@Override
	public int add(int num1, int num2, User user) {
		System.out.println(user.getUsername()+":\t"+user.getPassword());
		System.out.println(num1 + "+" + num2 + "=" + (num1 + num2));
		return num1 + num2;
	}

}
